﻿namespace dotnet_notes.Reqs
{
    public class CommonReq { }

    /// <summary>
    /// 通用主键请求模型
    /// </summary>
    public class CommonPrimaryKeyReq
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int ID { get; set; }
    }

    /// <summary>
    /// 通用审核请求模型
    /// </summary>
    public class CommonExamineReq : CommonPrimaryKeyReq
    {
        /// <summary>
        /// 审核结果枚举
        /// </summary>
        public enum ExamineResultEnum
        {
            [Description("同意")] Approved = 1,
            [Description("驳回")] Rejected
        }

        /// <summary>
        /// 审核结果
        /// </summary>
        [EnumValidation(typeof(ExamineResultEnum))]
        public ExamineResultEnum ExamineResult { get; set; }

        /// <summary>
        /// 审核备注
        /// </summary>
        public string ExamineRemark { get; set; } = "";
    }

    /// <summary>
    /// 审核查询基础请求模型
    /// </summary>
    public class ExamineQueryBaseReq
    {
        /// <summary>
        /// 审核状态数组
        /// </summary>
        public List<ExamineStatusEnum?> ExamineStatusArray { get; set; } = [];
    }
}
